package com.eportal.service;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.eportal.domain.TUsers;
import com.eportal.domain.UsersApply;
import com.framework.jqgrid.JqGridPager;

public interface TUsersService  {

	List<TUsers> list(JqGridPager jqGridPager);

	TUsers get(Long id);
    
    void delete(Long id);
    
    void update(TUsers tUsers) throws Exception;

    void delete(List<Long> ids);
    
    TUsers add(TUsers tUsers) throws Exception;

	Map<String, Object> addMethod(TUsers tUser);

	Map<String, Object> updateMethod(TUsers tUser);

	Map<String, Object> deleteMethod(String param_ids);

	Map<String, Object> auditMethod(String sid, String status, String roomStatus, String flag, String pubId, String prvId, String validity, String agtCode, String communityId) throws Exception;

	List<Map<String, String>> getApplyDetail(String sid);
	
	List<UsersApply> userApplyList(JqGridPager jqGridPager, String agtCode, String communityId);
	
	UsersApply getUsersApply(Long sid);
	
	void updateUsersApply(UsersApply usersApply) throws Exception;

	Map<String, Object> authorizeKeysMethod(String data, String pubId, String prvId, Date validityDate, String communityId, String agtCode, String appId, Date startTime_);

	Map<String, Object> userDetailQuery(String sid);

	boolean haveRole(String sid);

	List<Map<String, String>> list(String sql);

	TUsers getByWhere(String where);

	Map<String, Object> addTestKeyMethod(String pid, String tel, String userName, String validity);

	String getUserID();

	Map<String, Object> updateUsersCommunity(String communityId,Long installUnitId, String userId);

	TUsers getOrCreatTuser(String communityId, String ownerTel, String ownerName, String unitId);

	TUsers getByUserid(String userid);

	boolean checkUser4WebAuth(String appUserid, String token);
}
